---
title: EVM Tools
---

## Code

```python cookbook/tools/evm_tools.py
from agno.agent import Agent
from agno.tools.evm import EvmTools

agent = Agent(
    instructions=[
        "You are a blockchain assistant that helps with Ethereum transactions",
        "Help users send transactions and interact with smart contracts",
        "Always verify transaction details before executing",
    ],
    tools=[EvmTools()],
    markdown=True,
)

agent.print_response("Check my account balance and estimate gas for sending 0.01 ETH")
```

## Usage

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="Set your credentials">
    ```bash
    export EVM_PRIVATE_KEY=your-private-key
    export EVM_RPC_URL=https://your-rpc-endpoint.com
    export OPENAI_API_KEY=xxx
    ```
  </Step>

  <Step title="Install libraries">
    ```bash
    pip install -U web3 openai agno
    ```
  </Step>

  <Step title="Run Agent">
    <CodeGroup>
    ```bash Mac
    python cookbook/tools/evm_tools.py
    ```

    ```bash Windows
    python cookbook/tools/evm_tools.py
    ```
    </CodeGroup>
  </Step>
</Steps>
